.template-content {
    .page-header {
        h1 {
            font-size: 24px;
            font-weight: 600;
            color: #262626;
            margin: 0;
            line-height: 1.4;
        }
    }
    
    .sub-nav {
        margin-bottom: 24px;

        .custom-tabs {
            .ant-tabs-nav {
                margin-bottom: 16px;
            }

            .ant-tabs-tab {
                font-weight: 500;
                color: #666;

                &.ant-tabs-tab-active {
                    color: var(--btnBG);
                }
            }
        }

        .add-template-btn-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 80px;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 16px;
            transition: all 0.3s;

            .anticon {
                color: #fff;
                font-size: 18px;
            }
            .icon-plus {
                font-size: 15px;
                color: #009999;
                margin-right: 4px;
            }
        }

        .template-table {
            .ant-table-thead > tr > th {
                background-color: #fafafa;
                border-bottom: 1px solid #e8e8e8;
                font-weight: 600;
                color: #262626;
            }

            .ant-table-tbody > tr > td {
                border-bottom: 1px solid #f0f0f0;
            }

            .ant-table-tbody > tr:hover > td {
                background-color: #f5f5f5;
            }

            .file-icon {
                width: 32px;
                height: 32px;
                border-radius: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 8px;

                &.word {
                    background-color: #2b579a;
                    color: #fff;
                }

                &.excel {
                    background-color: #217346;
                    color: #fff;
                }

                &:hover {
                    transform: scale(1.1);
                }
            }

            .download-btn {
                color: #1890ff;
                padding: 0;
                height: auto;

                &:hover {
                    color: #40a9ff;
                }
            }
        }
    }

    .upload-modal-content {
        .upload-tip {
            text-align: center;
            color: #666;
            margin-bottom: 24px;
            font-size: 14px;
        }

        .upload-area {
            border: 2px dashed #d9d9d9;
            border-radius: 8px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 16px;

            &:hover {
                border-color: var(--btnBG);
                background-color: #fafafa;
            }

            .upload-icon {
                font-size: 48px;
                color: #d9d9d9;
                margin-bottom: 16px;
            }

            .upload-text {
                color: #666;
                font-size: 14px;
            }
        }

        .selected-file {
            display: flex;
            align-items: center;
            padding: 12px;
            background-color: #f5f5f5;
            border-radius: 6px;
            margin-bottom: 24px;

            .anticon {
                color: #1890ff;
                margin-right: 8px;
            }

            span {
                flex: 1;
                color: #262626;
            }

            .remove-btn {
                color: #ff4d4f;
                padding: 0;
                height: auto;

                &:hover {
                    color: #ff7875;
                }
            }
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;

            .cancel-btn {
                border-color: #d9d9d9;
                color: #666;

                &:hover {
                    border-color: #40a9ff;
                    color: #40a9ff;
                }
            }

            .save-btn {
                background-color: var(--btnBG);
                border-color: var(--btnBG);

                &:hover {
                    background-color: var(--btnBG);
                    border-color: var(--btnBG);
                }
            }
        }
    }
}
